<div ng-controller="AuthorizationCtrl" ng-init="addAction()" class="sui-form form-horizontal">
    <form name="authorizationForm" novalidate ng-submit="addAuthorization()">
        <ul class="sui-breadcrumb">
            <li><a href="#/authorization/list">{{'Authorization'| translate}}{{"List"|translate}}</a></li>
            <li class="active">{{authorization.cash_req_id?'edit':'add_new' | translate}}</li>
        </ul>
       
        <div class="control-group">
            <label class="control-label v-top"><b style="color: #f00;">*</b> {{'supply_name'| translate}}：</label>
            <div class="controls">
                <select-supplier-list  ng-show="!authorization.cooperate_id" ng-model="authorization.supplier_id" callback="addfenxiao(supplier)"> </select-supplier-list>
                <span ng-show="authorization.cooperate_id ">{{authorization.supplier_nick}}</span>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top"> {{'payment_type'| translate}}：</label>
            <div class="controls">
                <input ng-model="authorization.auth_payway" type="text" name="auth_payway" value="" class="input-xlarge" >
            </div>
        </div>
        <div class="control-group" >
            <label class="control-label v-top"><b style="color: #f00;">*</b> {{'created_at'| translate}}：</label>
            <div class="controls">
                <input ng-model="authorization.start_date"  value=""  datetimepicker name="start_date" class="input-xlarge" required>
                <div ng-show="authorizationForm.start_date.$error.required" class="sui-msg msg-error msg-clear help-block error ">
                    <div class="msg-con">{{'required'| translate}}</div>
                    <s class="msg-icon"></s>
                </div>
            </div>
        </div>
       <div class="control-group" >
            <label class="control-label v-top"><b style="color: #f00;">*</b> {{'end_date'| translate}}：</label>
            <div class="controls">
                <input ng-model="authorization.end_date"  value=""  datetimepicker name="end_date" class="input-xlarge" required>
                <div ng-show="authorizationForm.end_date.$error.required" class="sui-msg msg-error msg-clear help-block error ">
                    <div class="msg-con">{{'required'| translate}}</div>
                    <s class="msg-icon"></s>
                </div>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label v-top">  {{'trade_type'| translate}}：</label>
            <div class="controls">
                <trade-type ng-model="authorization.trade_type">
            </div>
        </div>

        <!--  <div class="control-group" >
            <label class="control-label v-top"><b style="color: #f00;">*</b> {{'seller_agree_time'| translate}}：</label>
            <div class="controls">
                <input ng-model="authorization.seller_agree_time"  value=""  datetimepicker name="seller_agree_time" class="input-xlarge" required>
                <div ng-show="authorizationForm.seller_agree_time.$error.required" class="sui-msg msg-error msg-clear help-block error ">
                    <div class="msg-con">{{'required'| translate}}</div>
                    <s class="msg-icon"></s>
                </div>
            </div>
        </div> -->

        <div class="control-group">
            <label class="control-label"></label>
            <div class="controls">
                <button type="submit" id="submit" class="sui-btn btn-primary" ng-disabled="!(authorizationForm.$valid)">
                    <span>{{'save' | translate}}</span>
                </button>
            </div>
        </div>
    </form>
</div>
